<!--
 * @Author: zqx me_zqx@163.com
 * @Date: 2025-05-28 14:22:39
 * @LastEditors: zqx me_zqx@163.com
 * @LastEditTime: 2025-05-29 11:44:56
 * @FilePath: /XMate-h5/src/views/badge/components/emptyDeviceInfoView.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="flex flex-col pt-4 px-4">
    <div
      class="flex flex-col mt-6 py-8 gap-4 justify-center items-center bg-gray-100 rounded-lg"
    >
      <p class="text-gray-600">暂无绑定设备</p>
      <div class="w-[140px]">
        <van-button
          class="w-[100px]"
          size="large"
          color="#436BFF"
          @click="() => emits('clickBindBtn')"
          >添加设备</van-button
        >
      </div>
    </div>

    <div class="bg-[#F9FAFC] mt-10 p-5 rounded-[8px]">
      <h4 class="font-bold mb-2">绑定说明</h4>
      <p
        class="text-gray-600 mb-1 text-sm leading-6"
        v-for="item of tips"
        v-bind:key="item"
      >
        {{ item }}
      </p>
    </div>
  </div>
</template>

<script setup lang="ts">
import { defineEmits, ref } from "vue";

const emits = defineEmits(["clickBindBtn"]);

const tips = ref([
  "1.点击“添加设备”按钮",
  "2.输入工牌上的SN序列号",
  "3.确认绑定即可完成",
]);
</script>

<style scoped lang="less">
div {
  --van-button-large-height: 40px;
}
</style>
